﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Core
{
    public interface IValidationErrorCollection : IEnumerable<IValidationError>
    {
        void Add(IValidationError error);
        void Add(string message, object target, string propertyName);
        void AddAllFrom(IValidationErrorCollection errorCollection);
        bool Remove(object target, string propertyName);

        int Count { get; }
        bool IsValid { get; }
    }
}
